package service.data.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description="权限菜单对象") //实体类注释
public class SysPermission implements Serializable {
    @ApiModelProperty(value="菜单id",name="id",required=false)
    private Integer id;
    @ApiModelProperty(value="菜单名",name="name",required=true)
    private String name;
    @ApiModelProperty(value="菜单类型",name="type",required=true)
    private String type;
    @ApiModelProperty(value="菜单url",name="url",required=false)
    private String url;
    @ApiModelProperty(value="简码",name="percode",required=false)
    private String percode;
    @ApiModelProperty(value="父id",name="parent_id",required=false)
    private Integer parentId;
    @ApiModelProperty(value="层级",name="level",required=false)
    private Integer level;
    @ApiModelProperty(value="排序序号",name="sortstring",required=false)
    private String sortstring;
    @ApiModelProperty(value="是否有效",name="available",required=false)
    private Integer available;
    @ApiModelProperty(value="元素图标",name="icon",required=false)
    private String icon;
    @ApiModelProperty(value="子元素",name="children",required=false)
    private List<SysPermission> children;
}
